﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

/// <summary>
/// 设备变量，根据传感器上传的值变量，把变量名字填入这个表里面
/// </summary>
[Index("mv_v_guid", Name = "idxdclguid")]
[Index("mv_model_guid", Name = "idxdguid")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_device_model_variable_relation
{
    [Key]
    public long mv_id { get; set; }

    [StringLength(50)]
    public string mv_v_guid { get; set; }

    [StringLength(50)]
    public string mv_model_guid { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime mv_add_time { get; set; }

    /// <summary>
    /// 说明
    /// </summary>
    [StringLength(255)]
    public string mv_remark { get; set; }

    [StringLength(255)]
    public string mv_name { get; set; }

    /// <summary>
    /// 属性值范围
    /// </summary>
    [StringLength(255)]
    public string mv_limit { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int? mv_order { get; set; }

    [StringLength(50)]
    public string mv_guid { get; set; }
}
